package com.sunyard.pcc.common.bo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Author: Hewei
 * @Description:
 * @Date: Created in 9:58 2018/4/9
 */
@Data
public class SysUserLoginLimitBO implements Serializable{

    private static final long serialVersionUID = -2348836086079185220L;


    /**
     * 登录次数
     */
    private AtomicInteger loginCount;

    /**
     * 上次登录时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime lastLoginTime;

    /**
     * 用户员工账户状态
     */
    private Integer userStatus;

}
